package com.company.prototype;

public class 孙悟空 implements Cloneable {

    int age;

    public 孙悟空() {
        age = 100000;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public 孙悟空 clone() {
        孙悟空 monkey = null;
        try {
            monkey = (孙悟空) super.clone();
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        return monkey;
    }

}
